package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

@Data
@ApiModel("发文记录实体")
public class DocumentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "收件人编号")
    private String recipientsId;

    @ApiModelProperty(value = "收件人")
    private String recipients;

    @ApiModelProperty(value = "主题")
    private String theme;

    @ApiModelProperty(value = "发文类型编号")
    private String documentTypeId;

    @ApiModelProperty(value = "发文类型")
    private String documentType;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "发文日期")
    private String documentTime;

    @ApiModelProperty(value = "发文模板")
    private String documentTemplate;

    @ApiModelProperty(value = "邮件标签")
    private String mailLabel;

    @ApiModelProperty(value = "完成事项")
    private String achieveMatter;

    @ApiModelProperty(value = "附件")
    private String accessory;

    @ApiModelProperty(value = "发件人")
    private String addresser;

    @ApiModelProperty(value = "抄送")
    private String copy;

    @ApiModelProperty(value = "密送")
    private String blindCarbonCopy;

    @ApiModelProperty(value = "邮件描述")
    private String mailDescribe;

    @ApiModelProperty(value = "正文")
    private String text;

    @ApiModelProperty(value = "邮件签名")
    private String mailSignature;

    @ApiModelProperty(value = "应返稿日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date returnableDate;

    @ApiModelProperty(value = "修改人编号")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人名称")
    private String updateUserName;

    @ApiModelProperty(value = "操作人ID")
    private Integer userId;

    @ApiModelProperty(value = "操作人名称")
    private String userName;

    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    private String updateTime;

    @ApiModelProperty(value = "删除时间")
    private String deleteTime;

}